package com.wangxinyuchuan.demo.factory_method;

/**
 * @author wangxinyuchuan
 * @date 2023/4/12 10:32 AM
 */
public class IDCard extends Product{
    private String owner;

    IDCard(String owner) {
        this.owner = owner;
        System.out.println("制作" + owner + "的ID卡");
    }

    @Override
    public void use() {
        System.out.println("使用" + owner + "的ID卡");
    }

    public String getOwner() {
        return owner;
    }
}
